from appium.options.common import AppiumOptions
from appium import webdriver
from appium.webdriver.common.appiumby import AppiumBy

from basic.base_page import BasePage


class PageMain(BasePage):


    def goto_new_arrival(self):
        from page.page_shopping.page_entrance_mi_new_arrivals import pageMiNewArrivals

        # locator_0 =  "new UiSelector().text(\"小米商城\")"
        # self._click(locator_0)
        locator_1 = "new UiSelector().text(\"小米上新\")"
        self._click(locator_1)

        return pageMiNewArrivals()

    def goto_publish(self):
        pass

    def goto_classify(self):
        locator = "new UiSelector().text(\"分类\")"
        self._click(locator)
        return self
        pass

    def goto_mine(self):
        pass

